namespace OFX.Aggregator.Infrastructure
{
	#region #using Directives

	using System;

	#endregion

	[Serializable]
	public class RetrievalFailedException : Exception
	{
		private readonly IStatementRetrieval retrieval;

		public RetrievalFailedException(IStatementRetrieval retrieval, string message)
			: base(message)
		{
			this.retrieval = retrieval;
		}

		public RetrievalFailedException(IStatementRetrieval retrieval, string message, Exception innerException)
			: base(message, innerException)
		{
			this.retrieval = retrieval;
		}

		public IStatementRetrieval Retrieval
		{
			get { return this.retrieval; }
		}
	}
}